import request from '@/utils/request';

// 获取渠道列表
export function getAuthChannel() {
  return request({
    url: '/auth/channelList',
    method: 'get'
  });
}

// 获取统计列表
export function getAuthStatistics(data) {
  return request({
    url: '/auth/authStatistics',
    method: 'post',
    data
  });
}
// 获取渠道营收
export function getstatisticalROI(data) {
  return request({
    url: '/modules/channel/statisticalROI',
    method: 'post',
    data
  });
}
// 获取渠道营收
export function getChannelRoi(data) {
  return request({
    url: '/modules/channel/channelRoi',
    method: 'post',
    data
  });
}
// 导出
export function doExcelChannelRoi(data) {
  return request({
    url: '/modules/channel/doExcel',
    method: 'post',
    data
  });
}
// 获取aps点击详细
export function getApsByRoi(data) {
  return request({
    url: '/modules/channel/getApsByRoi',
    method: 'post',
    data
  });
}
// 获取贷超点击详细
export function getLoanByRoi(data) {
  return request({
    url: '/modules/channel/getLoanByRoi',
    method: 'post',
    data
  });
}
